import { IPSControlAction } from '../ipscontrol-action';
import { IPSSDAjaxControl } from '../ipssdajax-control';
import { IPSDEForm } from './ipsdeform';

/**
 *
 * 继承父接口类型值[FORM]
 * @export
 * @interface IPSDEEditForm
 */
export interface IPSDEEditForm extends IPSDEForm, IPSSDAjaxControl {
  /**
   * 建立数据行为
   *
   * @type {IPSControlAction}
   */
  getCreatePSControlAction(): IPSControlAction | null;

  /**
   * 获取草稿数据行为（拷贝）
   *
   * @type {IPSControlAction}
   */
  getGetDraftFromPSControlAction(): IPSControlAction | null;

  /**
   * 获取草稿数据行为
   *
   * @type {IPSControlAction}
   */
  getGetDraftPSControlAction(): IPSControlAction | null;

  /**
   * 获取数据行为
   *
   * @type {IPSControlAction}
   */
  getGetPSControlAction(): IPSControlAction | null;

  /**
   * 删除数据行为
   *
   * @type {IPSControlAction}
   */
  getRemovePSControlAction(): IPSControlAction | null;

  /**
   * 更新数据行为
   *
   * @type {IPSControlAction}
   */
  getUpdatePSControlAction(): IPSControlAction | null;

  /**
   * 支持自动保存
   * @type {boolean}
   * @default false
   */
  enableAutoSave: boolean;

  /**
   * 信息表单
   * @type {boolean}
   * @default false
   */
  infoFormMode: boolean;

  /**
   * 显示表单导航栏
   * @type {boolean}
   * @default false
   */
  showFormNavBar: boolean;
}
